package com.cly.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cly.entity.EducationExperience;
import com.cly.result.JsonRequest;
import com.cly.vo.EducationExperienceVo;

import java.util.List;

/**
 * 教育经历表 服务类
 *
 * @author by 春风能解释
 * <p>
 * 2024/11/9
 */
public interface IEducationExperienceService extends IService<EducationExperience> {

    /**
     * 查看教育经历
     *
     * @param resumeId 简历id
     * @return JSON
     */
    JsonRequest<List<EducationExperienceVo>> lookOneEducationExperience(Long resumeId);

    /**
     * 新增教育经历并关联简历
     *
     * @param educationExperience 教育经历
     * @param resumeId            简历id
     * @return JSON
     */
    JsonRequest<Boolean> addOneEducationExperience(List<EducationExperience> educationExperience, Long resumeId);

    /**
     * 删除教育经历
     *
     * @param resumeId 项目经历id
     * @return JSON
     */
    JsonRequest<Boolean> deleteEducationExperience(Long resumeId);

}
